/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.enforcement.hid.service;

import com.hopes.bizz.enforcement.hid.bo.RiskHidHiddenDangerBO;
import com.hopes.bizz.enforcement.hid.dto.*;
import com.hopes.bizz.enforcement.hid.entity.RiskHidHiddenDangerEntity;
import com.hopes.bizz.enforcement.hid.vo.RiskHidHiddenDangerExcelVO;
import com.hopes.boss.act.base.FlowService;
import com.hopes.boss.common.service.ExcelService;

import java.util.List;

;

/**
 * 隐患信息
 *
 * @author pig
 * @date 2023-07-18 10:51:29
 */
public interface RiskHidHiddenDangerService extends ExcelService<RiskHidHiddenDangerExcelDTO, RiskHidHiddenDangerExcelVO, RiskHidHiddenDangerEntity>, FlowService<RiskHidHiddenDangerEntity> {

    /**
     * 提交隐患
     */
    void handleHidSubmit(Long id);

    /**
     * 隐患新增
     */
    Long handleHidSave(RiskHidHiddenDangerDTO riskHidHiddenDangerDTO);

    /**
     * 隐患修改
     */
    void handleHidUpdate(RiskHidHiddenDangerDTO riskHidHiddenDangerDTO);

    /**
     * 保存并提交隐患
     */
    Long handleHidSaveAndSubmit(RiskHidHiddenDangerDTO riskHidHiddenDangerDTO);

    /**
     * 隐患确认
     */
    void handleHidConfirm(RiskHandleHidConfirmDTO handleHidConfirmDto);

    /**
     * 隐患整改
     */
    void handleHidRectify(RiskHandleHidRectifyDTO handleHidRectifyDto);


    // 统计安全包保责任人隐患数量
    List<Integer> getSafetyHidData(RiskHidHiddenDangerBO danger);

    void handleHidAcceptance(RiskHandleHidAcceptanceDTO handleHidAcceptanceDto);

    // 查询最近一条来自双体系任务的隐患
    RiskHidHiddenDangerEntity getOneByRiskHid(String code);
}
